package com.atnjupt.java;
/**
 * @author Wizarder
 * @create 2021-05-27 14:17
 */

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "Response2", value = "/Response2")
public class Response2 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//        Object key1 = request.getAttribute("key1");
//        System.out.println(key1);//null

        response.setContentType("text/html;charset=UTF-8");
        response.getWriter().write("Response2新的地址");

    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
